<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>编辑仓库</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
         <input type="hidden" name='id' value="{$wdata.id}"/>
      <div class="form-item">
            <label class="item-label">仓库所在国家选择<span class="check-tips">（必须选择正确的所在地哦！）</span></label>
            <div class="controls">
                    <select name="country_id">
                        <foreach name="countrylist" item="vo" >                            
                               <option value="{$vo.country_id}" <if condition="$vo.country_id eq $wdata.country_id ">selected</if>>[{$vo.code}] {$vo.name_chinese}</option>
                        </foreach>     
                    </select>
            </div>
	</div>
       <h2>新增仓库地址</h2>
         
        <hr/>
          <div class="form-item">
            <label class="item-label">仓库名称<span class="check-tips">（仓库的名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$wdata.name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">国家<span class="check-tips">（国家名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="country" value="{$wdata.country}">
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">省<span class="check-tips">（省名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="province" value="{$wdata.province}">
            </div>
        </div>
                <div class="form-item">
            <label class="item-label">市<span class="check-tips">（城市名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="city" value="{$wdata.city}">
            </div>
        </div>
                <div class="form-item">
            <label class="item-label">详细地址<span class="check-tips">（详细的地址）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="location" value="{$wdata.location}">
            </div>
        </div>        
        <div class="form-item">
            <label class="item-label">邮政编码<span class="check-tips">（邮政编码）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="zipcode" value="{$wdata.zipcode}">
            </div>
        </div>
                <div class="form-item">
            <label class="item-label">收件人名称<span class="check-tips">（收件人名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="person" value="{$wdata.person}">
            </div>
        </div>
                <div class="form-item">
            <label class="item-label">电话号码<span class="check-tips">（电话号码）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="phone" value="{$wdata.phone}">
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">仓库描述<span class="check-tips">（仓库描述）</span></label>
            <div class="controls">
                <label class="textarea input-large">
                    <textarea name="remark">{$wdata.remark}</textarea>
                </label>
            </div>
        </div>       
        
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Warehouse/index')}');
    </script>
</block>
